<template>
  <Header class="header">
    <Logo />
    <Menu />
  </Header>
</template>
<script lang="ts">
import { ref } from "vue";
import { Layout } from "ant-design-vue";

import Logo from "./Logo.vue";
import Menu from "./Menu.vue";

const { Header } = Layout;

export default {
  components: {
    Logo,
    Menu,
    Header,
  },
  setup() {
    const current = ref(["one"]);

    const change = (e: any) => {
      current.value = [e.key];
    };

    return {
      current,
      change,
    };
  },
};
</script>

<style lang="less">
.header {
  position: fixed;
  top: 0;
  height: @header_height;
  width: 100%;
  background: #ffffff;
  border-bottom: 1px solid #e9e9e9;
  padding: 0 32px;
  box-shadow: 0px 1px 4px rgba(0, 21, 41, 0.12);
  z-index: 20;
  line-height: @header_height;

  & > * {
    vertical-align: top;
  }
}
</style>